﻿
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    var news = ViewBag.news;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title;</title>

    <script>
        $(function () {
            var _userinfo = { name: "王刚", sex: "男" };
            //var _girlfirend = { mingzi: "赵世焱" };

            $.ajax({
                url: "/Article/getinfo",
                type: "Post",
                data: JSON.stringify({ jsoninfo: _userinfo }),
                contentType: "application/json",
                success: function (data) {
                    console.log(data);
                }
            })

            //$.ajax({
            //    url: "http://api.tianapi.com/social/",
            //    type: "Post",
            //    data: JSON.stringify({ key: "3cc99f8a0d5c5ef62fd0508de88c4801",num:10 }),
            //    contentType: "application/json",
            //    success: function (data) {
            //        console.log(data);
            //    }
            //})



        })
    </script>
</head>
<body>
    <div>
        @news;
    </div>
</body>
</html>
